<!DOCTYPE html>
<html>

<head>
    <include file="Share:meta" />
    <script src="../Public/plugins/jsFormat/jsFormat.js"></script>

</head>

<body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
        <include file="Share:header" />
        <include file="Share:left" />
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>账号管理<small></small></h1>
                <ol class="breadcrumb">
                    <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                    <li class="active">账号新增、修改</li>
                </ol>
            </section>
            <!-- Main content -->
            <section class="content">
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title"><empty name="Think.get.uid">新增账号<else />账号详细信息</empty></h3>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form class="form-horizontal" action="" method="post">
                        <input type="hidden" name="uid" value="{$info.uid}"></input>
                        <div class="box-body">
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">名称</label>
                                <div class="col-sm-10">
                                    <input type="text" name="name" id="inputEventCode" class="form-control" value="{$info.name}" placeholder="" required="required" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">角色</label>
                                <div class="col-sm-10">
                                    <select name="rid" id="rid" class="form-control" required="required">
                                        <option></option>
                                        <volist name="addrole" id="vo">
                                            <option value="{$vo.roleid}">{$vo.rolename}</option>
                                        </volist>
                                    </select>
                                    <script type="text/javascript">
                                        $('#rid').val('{$info.rid}');
                                    </script>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">登录账号</label>
                                <div class="col-sm-10">
                                    <input type="text" name="username" id="inputEventCode" class="form-control" value="{$info.username}" placeholder="" required="required" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">密码</label>
                                <div class="col-sm-10">
                                    <eq name="info.password" value="">
                                        <input type="password" name="password" id="inputEventCode" class="form-control" value="" placeholder="" required="required" autocomplete="off">
                                    <else/>
                                        <input type="password" name="password" id="inputEventCode" class="form-control" value="" placeholder="不修改密码请勿填写" autocomplete="off">
                                    </eq>
                                    
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">地址</label>
                                <div class="col-sm-10">
                                    <input type="text" name="address" id="inputEventCode" class="form-control" value="{$info.address}" placeholder="" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">联系人</label>
                                <div class="col-sm-10">
                                    <input type="text" name="contacts" id="inputEventCode" class="form-control" value="{$info.contacts}" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">电话</label>
                                <div class="col-sm-10">
                                    <input type="text" name="mobile" id="inputEventCode" class="form-control" value="{$info.mobile}" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">状态</label>
                                <div class="col-sm-10">
                                    <select name="status" id="status" class="form-control" required="required">
                                        <option value="1">正常</option>
                                        <option value="0">禁用</option>
                                    </select>
                                </div>
                                <script type="text/javascript">
                                    $("#status").val('{$info.status}');
                                </script>
                            </div>
                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer col-sm-offset-2">
                            <button type="submit" class="btn btn-primary">
                                <eq name="info" value="">新增
                                    <else />保存</eq>
                            </button>
                            <a class="btn btn-warning" href="__APP__/Admin/Store/factory" role="button">返回</a>
                        </div>
                        <br>
                        <!-- /.box-footer -->
                    </form>
                </div>
              
            </section>
            <!-- /.content -->
        </div>
        <!-- /.content-wrapper -->
        <include file="Share:copyright" />
        <include file="Share:setting" />
    </div>
    <include file="Share:js" />
    <script type="text/javascript">
    $("#AdminManager").addClass("active");
    $("#Factory").addClass("active");
    </script>
</body>

</html>
